package com.jiwei.system.dao;

import com.jiwei.system.pojo.Member;
import com.jiwei.system.pojo.MemberLogin;
import org.apache.ibatis.annotations.Mapper;
import com.jiwei.system.pojo.MemberLogin;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface MemberLoginMapper {
    MemberLogin queryMemberLoginByAccount(String account);

    void updateMemberLogin(MemberLogin memberLogin);

    int queryMemberIsExit(String id);

    String queryRoleById(String account);

    int getCountByRole(@Param("role") String role);

    String getNameByAccount(String Account);

    void addMemberLogin(@Param(value = "account") String account, @Param(value = "PwdMD5") String PwdMD5, @Param(value = "role") String role);
}
